import requests from '@/api/request'
export default {
  // 查询
  postQueryArticleData (data) {
    return requests({
      url: `/v1/api/backend/recommend/article/queryByCondition`,
      method: 'post',
      data
    })
  },
  // 编辑
  putArticleData (data) {
    return requests({
      url: `/v1/api/backend/recommend/article/edit`,
      method: 'put',
      data
    })
  },
  deleteArticle (data) {
    return requests({
      url: `/v1/api/backend/recommend/article/delete/${data}`,
      method: 'delete'
    })
  },
  addArticle (data) {
    return requests({
      url: `/v1/api/backend/recommend/article/add`,
      method: 'post',
      data
    })
  }
}
